// stores/donation.js
import { defineStore } from 'pinia';

export const useDonationStore = defineStore('donation', {
  state: () => ({
    currentDonation: null,
    donationHistory: []
  }),
  actions: {
    setCurrentDonation(donation) {
      this.currentDonation = donation;
      this.donationHistory.push(donation);
    }
  }
});